package index.oop.lessonCode;

public class iStudent {
    public static void main(String[] args) {
        //测试类
        Student s1=new Student(23,"male",03100);
        System.out.println(s1.toString());
        s1.study();
        //key ->value;
        Student s2=new Student();
        s2.setAge(20);
        s2.setGender("male");
        s2.setId(12);
        System.out.println(s2.getAge());
        System.out.println(s2.getGender());
        System.out.println(s2.getId());
        System.out.println(s2.toString());
    }
}
